package cn.zhz.customview;

import androidx.appcompat.app.AppCompatActivity;
import cn.zhz.customview.view.explosion.ExplosionActivity;
import cn.zhz.customview.view.record.RecordActivity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    private static final String TAG = "MainActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.main_btn_explosion:
                startActivity(new Intent(MainActivity.this, ExplosionActivity.class));
                break;
            case R.id.main_btn_record:
                startActivity(new Intent(MainActivity.this, RecordActivity.class));
                break;
        }
    }
}
